﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ADO.NET.Samples.Common
{
    /// <summary>
    /// Custom attribute to describe a form
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = true)]
    public class FormDescriptionAttribute : Attribute
    {
        /// <summary>
        /// The title of the form
        /// </summary>
        public string FormTitle
        {
            get;
            set;
        }

        /// <summary>
        /// The description of the form
        /// </summary>
        public string FormDesc
        {
            get;
            set;
        }

        /// <summary>
        /// Constructor 
        /// </summary>
        /// <param name="title">form title</param>
        /// <param name="desc">form description</param>
        public FormDescriptionAttribute(string title, string desc)
        {
            this.FormTitle = title;
            this.FormDesc = desc;
        }
    }
}
